package top.wardyan.wdev.dbdevassist.action;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;

import top.wardyan.wdev.dbdevassist.model.YTUser;

public class Provider implements IStructuredContentProvider{

	@Override
	public Object[] getElements(Object arg) {
		if(arg instanceof List) {
			System.out.println(((List)arg).toArray());
			return ((List<YTUser>)arg).toArray();
		}else {
			return new Object[] {
					"111", "222", "333"
			};
		}
	}
/**
	@Override
	public void addListener(ILabelProviderListener arg0) {
	}

	@Override
	public void dispose() {
	}

	@Override
	public boolean isLabelProperty(Object arg0, String arg1) {
		return false;
	}

	@Override
	public void removeListener(ILabelProviderListener arg0) {
	}
**/
	
}
